package com.sinosoft.ptas.control.dto;

import java.io.Serializable;

import com.sinosoft.ptas.entity.ReportEntity;
import com.sinosoft.ptas.system.util.Excel;
import com.sinosoft.ptas.system.util.PtasObjectUtil;

/**
 * 申报表传输类
 * @author lianWuJun
 * @time   2017年2月18日 下午2:27:35
 */
public class ReportDataToExcel implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@Excel(titleName="年度")
	private String year;//年度
	
	@Excel(titleName="省级主管部门")
	private String provincialGovernment;//省级主管部门
	
	@Excel(titleName="第几次申报")
	private Integer timesOfReport;//同一项目申请的第几次
	@Excel(titleName="评定等级")
	private String auditResult;//评定结果（未评定，优，良，中，差）默认未评定，其他情况在添加审核表时进行对应的本项目状态的变化
	@Excel(titleName="申报时间")
	private String   commitTime;//点击提交的时间（代表申报时间，自动生成的）
	
	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getProvincialGovernment() {
		return provincialGovernment;
	}

	public void setProvincialGovernment(String provincialGovernment) {
		this.provincialGovernment = provincialGovernment;
	}

	public Integer getTimesOfReport() {
		return timesOfReport;
	}

	public void setTimesOfReport(Integer timesOfReport) {
		this.timesOfReport = timesOfReport;
	}

	public String getAuditResult() {
		return auditResult;
	}

	public void setAuditResult(String auditResult) {
		this.auditResult = auditResult;
	}

	public String getCommitTime() {
		return commitTime;
	}

	public void setCommitTime(String commitTime) {
		this.commitTime = commitTime;
	}

	/**
	 * 传输类转化成实体类
	 */
	public ReportEntity toEntity(){
		ReportEntity reportEntity = new ReportEntity();
		PtasObjectUtil.oldToNew(reportEntity, this, "serialVersionUID");
		return reportEntity;
	}
	
	/**
	 * 实体类转化成传输类
	 */
	public void toreportData(ReportEntity reportEntity){
		PtasObjectUtil.oldToNew(this, reportEntity, "serialVersionUID");
	}
	
}
